﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Diagnostics;
using RIDA.Globals;
using RIDA.Engine;
using RIDA.DiagramDesigner;
using RIDA.Globals.Interfaces;
using System.Windows.Media;
using System.Windows.Controls;
using RIDA.DiagramDesigner.ViewModel;

namespace RIDA.TaskView.ViewModel
{
    [Serializable]
    public class TaskToolboxViewModel:ViewModelBase
    {


        public TaskToolboxViewModel()
        {
        }

        private IExecutableTask task;
        public IExecutableTask Task
        {
            get { return task; }
            set
            {
                task = value;
                OnNotifyPropertyChanged("Task");
            }
        }


        public override object GetModel()
        {
            return Task;
        }

        public override ViewModelBase Switch()
        {
            return new TaskDesignerItemViewModel()
            {
                 Task=this.Task
            };
            
        }

    }
}
